#!/usr/bin/python3
# -*- coding:utf-8 -*-
# @Author    : jltxseo
# @File      : config.py
# @Time      : 18年3月14日 上午1:33
# @Software  : PyCharm


class Config(object):
    """
    Base config class.
    """
    # 　自己生成的随机密钥
    SECRET_KEY = 'CAimkL9TKu2rsnt23W1QlWjP8R3fptqv'
    # reCAPTCHA Public key and Private key
    RECAPTCHA_PUBLIC_KEY = "6LdjJmAUAAAAABnsaP3ieK1Q51EC1ytXMU5Oa95k"
    RECAPTCHA_PRIVATE_KEY = "6LdjJmAUAAAAAAKnoW5zfOk6DufPV7h4xoVwICSu"


class ProdConfig(Config):
    """
    Production config class.
    """
    DEBUG = False


class DevConfig(Config):
    """
    Development config class.
    """
    DEBUG = True
    # 用于连接的数据库 URI flask_sqlalchemy
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:jltxseo@127.0.0.1:3306/flask_blog?charset=utf8'


config = {
    'prod': ProdConfig,
    'dev': DevConfig
}
